package com.serbulent.examples.rest.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.serbulent.examples.rest.model.Book;

@Repository
public class BookDAO extends GenericDAOWithJPA<Book,Integer> implements IBookDAO {
	//fooo
	
	/* (non-Javadoc)
	 * @see com.serbulent.examples.rest.dao.IBookDAO#getAllBooks()
	 */
	public List<Book> getAllBooks() {
		return findAll();
		
	}
	
	/* (non-Javadoc)
	 * @see com.serbulent.examples.rest.dao.IBookDAO#getBookById(int)
	 */
	public Book getBookById(int  id){
		return find(id);
	}
}
